package com.panghl.test01.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panghl.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface UserMapper01 extends BaseMapper<User> {

    @Select("select * from t_user where username = #{name}")
    User findByName(String name);

    @Insert("insert into t_user(username,password) values(#{username},#{password})")
    int insert(@Param("username") String username, @Param("password") String password);

}
